package com.gwtgeo.ui.shared.event;

import com.google.gwt.event.shared.GwtEvent;
import com.gwtgeo.ui.client.mvp.windowsmanager.WindowTypeEnum;

public class OpenWinModalEvent extends GwtEvent<OpenWinModalEventHandler>{

	public static Type<OpenWinModalEventHandler> TYPE = new Type<OpenWinModalEventHandler>();
	
	private WindowTypeEnum type;
	
	public OpenWinModalEvent() {
		super();
	}
	
	public OpenWinModalEvent(WindowTypeEnum type) {
		super();
		this.type = type;
	}

	@Override
	protected void dispatch(OpenWinModalEventHandler handler) {
		handler.onOpenWinModal(this);
	}

	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<OpenWinModalEventHandler> getAssociatedType() {
		return TYPE;
	}

	public WindowTypeEnum getType() {
		return type;
	}	
}
